第 9 步:还记得我们之前创建的函数吗?让我们在 while 循环中调用它并开始构建它。

  • ,将Call w/ Parameter into Variable您的 while 循环内缩进8 个空格的变量中。
  • =符号左侧的变量从my_varresponse 。这将存储用户的响应。
  • 然后,将my_function更改为get_user_input并将my_parameter更改为text_sprite
  • 运行然后停下来继续下一个活动。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)